package com.bristua.tencent.rtc.sdk.push.business;
import android.support.annotation.NonNull;
import android.text.TextUtils;

import com.alibaba.fastjson.JSON;
import com.bristua.tencent.rtc.sdk.provider.RtcContainer;
import com.bristua.tencent.rtc.sdk.push.IRtcPushBusiness;
import com.bristua.tencent.rtc.sdk.push.business.api.IRtcPushApi;
import com.bristua.tencent.rtc.sdk.push.business.dao.impl.AddPusherDaoImpl;
import com.bristua.tencent.rtc.sdk.push.business.dao.impl.DelPusherDaoImpl;
import com.bristua.tencent.rtc.sdk.push.business.dao.impl.GetPushUrlDaoImpl;
import com.bristua.tencent.rtc.sdk.push.business.dao.impl.GetPusherDaoImpl;
import com.hua.yuan.common.https.OkHttpModule;

import java.util.HashMap;
import java.util.Map;

import okhttp3.MediaType;
import okhttp3.RequestBody;
import retrofit2.Call;

/**
 * @Author: richsjeson.
 * @Description: TODO()
 * @Modified By:
 */
public class RtcPushBusinessImpl implements IRtcPushBusiness {

    @Override
    public void addPusher(@NonNull final String pRoomId, @NonNull final String pUserId, @NonNull final String pPushUrl) {

        new AddPusherDaoImpl().addPusher(pRoomId,pUserId,pPushUrl);
    }

    @Override
    public void delPusher(@NonNull final String pRoomId, @NonNull final String pUserId) {

        new DelPusherDaoImpl().delPusher(pRoomId,pUserId);
    }

    @Override
    public String getPushUrl(@NonNull final String pRoomId, @NonNull final String pUserId) {

        return new GetPushUrlDaoImpl().getPushUrl(pRoomId,pUserId);
    }

    @Override
    public void getPusher(@NonNull String pUserId,@NonNull final String pRoomId) {
         new GetPusherDaoImpl().getPusher(pUserId,pRoomId);
    }
}
